package com.ap.core.validation.message.rules;

import com.ap.core.message.managerefund.info.RequestRetrieveRefundAccountInfo;
import com.ap.core.validation.message.info.MessageValidationInfo;
import com.ap.core.validation.message.info.OriginalInfo;

/**
 * User: Gibu.Paul
 * Check if provided Distributor ID is in Active Status
 */
public class RV0002RefundRequestRule extends AbstractDistributorCheckRule<RequestRetrieveRefundAccountInfo, OriginalInfo>{


    @Override
    public boolean validate(MessageValidationInfo<RequestRetrieveRefundAccountInfo, OriginalInfo> infoObject) {
    	return isDistributorActive(infoObject.getBoundObject().getRefundRequestInfo().getDistributorId());
    	
    }


}
